package com.sdhs.analyze;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.core.env.ConfigurableEnvironment;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.transaction.annotation.EnableTransactionManagement;

@SpringBootApplication
// @EnableDiscoveryClient
@EnableTransactionManagement
@MapperScan(value = "com.sdhs.analyze")
@EnableScheduling
public class AnalyzeApplication {

    public static void main(String[] args) {
        ConfigurableEnvironment environment = SpringApplication.run(AnalyzeApplication.class, args).getEnvironment();
        System.out.println("^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^"
                + "\n^      (♥◠‿◠)ﾉﾞ 启动成功，端口号: " + environment.getProperty("server.port") + "  ლ(´ڡ`ლ)ﾞ            ^\n"
                + "^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n");
    }


}
